package org.linuxsogood.chapter2.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * Created by m on 16/3/19.
 */
public class StringUtil {

    public static boolean isNotEmpty(String strValue) {
        if (strValue != null) {
            strValue = strValue.trim();
        }
        return StringUtils.isNotEmpty(strValue);
    }

    public static boolean isEmpty(String strValue) {
        return !isNotEmpty(strValue);
    }
}
